package cn.test.bookms.mapper;

import cn.test.bookms.entity.MsBook;
import cn.test.bookms.entity.Student;
import org.apache.ibatis.annotations.Param;

import java.awt.print.Book;
import java.util.List;

/**
 * @_PackageName:cn.test.bookms.mapper
 * @_ClassName:StudentMapper
 * @_Description:
 * @_Author：笑老二
 * @_data 20/06/16 19:52
 */
public interface StudentMapper {

    List<Student> findAll();

    List<Student> findStuByCollege(Integer c_id);

    Student findStuBySid(@Param("sid") Integer sid);

    int addStuBorrowBook(@Param("sid") Integer sid,@Param("book_id")Integer book_id);

    int delStuBorrow(@Param("sid")Integer sid, @Param("book_id")Integer book_id);

    MsBook findBookStatus(Integer book_id);

    int  updateBookStatus(Integer book_id);

    void updateBookStatus0(Integer book_id);

    MsBook findLibraryBookByBooKId(Integer book_id);
}
